# eBay API 配置示例
# 请在 Django settings.py 中添加以下配置

# eBay API 配置
EBAY_APP_ID = 'your_app_id_here'  # 您的eBay App ID
EBAY_CERT_ID = 'your_cert_id_here'  # 您的eBay Cert ID  
EBAY_DEV_ID = 'your_dev_id_here'  # 您的eBay Dev ID
EBAY_AUTH_TOKEN = 'your_auth_token_here'  # 您的eBay Auth Token

# 如何获取eBay API凭证：
# 1. 访问 https://developer.ebay.com/
# 2. 创建开发者账户
# 3. 创建应用程序
# 4. 获取以下凭证：
#    - App ID (Application ID)
#    - Cert ID (Certificate ID) 
#    - Dev ID (Developer ID)
#    - Auth Token (User Token)

# 数据库配置 (MySQL)
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'your_database_name',
        'USER': 'your_mysql_user',
        'PASSWORD': 'your_mysql_password',
        'HOST': 'localhost',
        'PORT': '3306',
        'OPTIONS': {
            'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
            'charset': 'utf8mb4',
        },
    }
}

# 添加 ebay 应用到 INSTALLED_APPS
INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'ebay',  # 添加这一行
]

# 时区设置
TIME_ZONE = 'Asia/Shanghai'
USE_TZ = True

# 语言设置
LANGUAGE_CODE = 'zh-hans' 